home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / Orientation.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  40 lines

  1. package symantec.itools.awt;
  2.  
  3. import java.beans.PropertyVetoException;
  4.  
  5. //    06/03/97    MSH Updated to Java 1.1
  6. //    06/03/97    LAB Made the interface public, for the spinners.
  7.  
  8. /**
  9.  * Orientation is an interface for components that can be oriented either
  10.  * vertically or horizontally.
  11.  */
  12. public interface Orientation
  13. {
  14.     /**
  15.      * Constant specifying vertical orientation.
  16.      */
  17.     public final int ORIENTATION_VERTICAL   = 0;
  18.     /**
  19.      * Constant specifying horizontal orientation.
  20.      */
  21.     public final int ORIENTATION_HORIZONTAL = 1;
  22.  
  23.     /**
  24.      * Sets the component's new orientation.
  25.      * @param o desired orientation, either ORIENTATION_VERTICAL or
  26.      * ORIENTATION_HORIZONTAL
  27.      * @see #getOrientation
  28.      * @exception PropertyVetoException
  29.      * if the specified property value is unacceptable
  30.      */
  31.     public void setOrientation(int o) throws PropertyVetoException;
  32.     /**
  33.      * Gets the component's current orientation.
  34.      * @return the current orientation, either ORIENTATION_VERTICAL or
  35.      * ORIENTATION_HORIZONTAL
  36.      * @see #setOrientation
  37.      */
  38.     public int getOrientation();
  39. }
  40.